#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include <QJsonArray>

namespace Ui {
class recBox;
}

class recBox : public QWidget
{
    Q_OBJECT

public:
    explicit recBox(QWidget *parent = nullptr);
    ~recBox();

    void initRecBoxUi(QJsonArray& data, int row);

    void createRecBoxItem();

private:
    Ui::recBox *ui;

    int col;
    int row;

    QJsonArray imagelist;

    int count;
    int currentIndex;
};

#endif // RECBOX_H
